package model;



public class Magazine extends Resource {
    private final String issueNumber;


    public Magazine(String id, String title, String issueNumber) {
        super(id, title);
        this.issueNumber = issueNumber;
    }


    public String getIssueNumber() {
        return issueNumber;
    }

    @Override
    public String toString() {
        return String.format("Magazine [ID: %s, Title: %s, Issue: %s, Available: %b]",
                getId(), getTitle(), issueNumber, isAvailable());
    }
}